package com.ali.gulimall.member.service;

import com.ali.gulimall.member.exception.PhoneException;
import com.ali.gulimall.member.exception.UsernameException;
import com.ali.gulimall.member.vo.MemberRegisterVo;
import com.ali.gulimall.member.vo.SocialUser;
import com.ali.gulimall.member.vo.UserLoginVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ali.common.utils.PageUtils;
import com.ali.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author ali
 * @email 2916227265@qq.com
 * @date 2022-07-15 15:57:04
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegisterVo vo);

   void checkPhoneUnique(String phone) throws PhoneException;

    void checkUserNameUnique(String userName) throws UsernameException;

    MemberEntity login(UserLoginVo vo);


    MemberEntity login(SocialUser socialUservo) throws Exception;

}

